package com.ruoyi.kong.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * kong网关转发日志记录对象 kong_http_log
 * 
 * @author admin
 * @date 2021-09-18
 */
public class KongHttpLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 请求参数 */
    @Excel(name = "请求参数")
    private String requestQuerystring;

    /** 请求主机 */
    @Excel(name = "请求主机")
    private String requestHost;

    /** 请求路径 */
    @Excel(name = "请求路径")
    private String requestUrl;

    /** 请求类型 */
    @Excel(name = "请求类型")
    private String requestMethod;

    /** 请求大小 */
    @Excel(name = "请求大小")
    private Long requestSize;

    /** 请求体 */
    @Excel(name = "请求体")
    private String requestBody;

    /** 请求路径 */
    @Excel(name = "请求路径")
    private String requestUri;

    /** 是运行所有插件所需的内部 Kong 延迟 */
    @Excel(name = "是运行所有插件所需的内部 Kong 延迟")
    private Long latenciesKong;

    /** 是从客户端读取第一个字节和最后一个字节发送到客户端之间经过的时间 */
    @Excel(name = "是从客户端读取第一个字节和最后一个字节发送到客户端之间经过的时间")
    private Long latenciesRequest;

    /** 是最终服务处理请求所用的时间 */
    @Excel(name = "是最终服务处理请求所用的时间")
    private Long latenciesLatencies;

    /** 返回状态 */
    @Excel(name = "返回状态")
    private Integer responseStatus;

    /** 响应内容大小 */
    @Excel(name = "响应内容大小")
    private Long responseSize;

    /** 响应体 */
    @Excel(name = "响应体")
    private String responseBody;

    /** 网关服务id */
    @Excel(name = "网关服务id")
    private String serviceId;

    /** 网关服务名称 */
    @Excel(name = "网关服务名称")
    private String serviceName;

    /** kong网关主机名 */
    @Excel(name = "kong网关主机名")
    private String serviceHost;

    /** 网关服务路径 */
    @Excel(name = "网关服务路径")
    private String servicePath;

    /** 网关服务端口号 */
    @Excel(name = "网关服务端口号")
    private String servicePort;

    /** 网关空间id */
    @Excel(name = "网关空间id")
    private String serviceWsId;

    /** 服务tag */
    @Excel(name = "服务tag")
    private String serviceTags;

    /** 路由id */
    @Excel(name = "路由id")
    private String routeId;

    /** 路由名称 */
    @Excel(name = "路由名称")
    private String routeName;

    /** 路由主机名 */
    @Excel(name = "路由主机名")
    private String routeHost;

    /** 路由对应服务的id */
    @Excel(name = "路由对应服务的id")
    private String routeServiceId;

    /** 客户id */
    @Excel(name = "客户id")
    private String consumerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String consumerName;

    /** 负载信息列表 */
    @Excel(name = "负载信息列表")
    private String triesIp;

    /** 上游uri */
    @Excel(name = "上游uri")
    private String upstreamUri;

    /** 客户端ip */
    @Excel(name = "客户端ip")
    private String clientIp;

    /** 开始处理请求时的 UTC 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始处理请求时的 UTC 时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startedAt;

    /** 身份验证的凭据信息 */
    @Excel(name = "身份验证的凭据信息")
    private String authenticatedEntity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRequestQuerystring(String requestQuerystring) 
    {
        this.requestQuerystring = requestQuerystring;
    }

    public String getRequestQuerystring() 
    {
        return requestQuerystring;
    }
    public void setRequestHost(String requestHost) 
    {
        this.requestHost = requestHost;
    }

    public String getRequestHost() 
    {
        return requestHost;
    }
    public void setRequestUrl(String requestUrl) 
    {
        this.requestUrl = requestUrl;
    }

    public String getRequestUrl() 
    {
        return requestUrl;
    }
    public void setRequestMethod(String requestMethod) 
    {
        this.requestMethod = requestMethod;
    }

    public String getRequestMethod() 
    {
        return requestMethod;
    }
    public void setRequestSize(Long requestSize) 
    {
        this.requestSize = requestSize;
    }

    public Long getRequestSize() 
    {
        return requestSize;
    }
    public void setRequestBody(String requestBody) 
    {
        this.requestBody = requestBody;
    }

    public String getRequestBody() 
    {
        return requestBody;
    }
    public void setRequestUri(String requestUri) 
    {
        this.requestUri = requestUri;
    }

    public String getRequestUri() 
    {
        return requestUri;
    }
    public void setLatenciesKong(Long latenciesKong) 
    {
        this.latenciesKong = latenciesKong;
    }

    public Long getLatenciesKong() 
    {
        return latenciesKong;
    }
    public void setLatenciesRequest(Long latenciesRequest) 
    {
        this.latenciesRequest = latenciesRequest;
    }

    public Long getLatenciesRequest() 
    {
        return latenciesRequest;
    }
    public void setLatenciesLatencies(Long latenciesLatencies) 
    {
        this.latenciesLatencies = latenciesLatencies;
    }

    public Long getLatenciesLatencies() 
    {
        return latenciesLatencies;
    }
    public void setResponseStatus(Integer responseStatus)
    {
        this.responseStatus = responseStatus;
    }

    public Integer getResponseStatus()
    {
        return responseStatus;
    }
    public void setResponseSize(Long responseSize) 
    {
        this.responseSize = responseSize;
    }

    public Long getResponseSize() 
    {
        return responseSize;
    }
    public void setResponseBody(String responseBody) 
    {
        this.responseBody = responseBody;
    }

    public String getResponseBody() 
    {
        return responseBody;
    }
    public void setServiceId(String serviceId) 
    {
        this.serviceId = serviceId;
    }

    public String getServiceId() 
    {
        return serviceId;
    }
    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    public String getServiceName() 
    {
        return serviceName;
    }
    public void setServiceHost(String serviceHost) 
    {
        this.serviceHost = serviceHost;
    }

    public String getServiceHost() 
    {
        return serviceHost;
    }
    public void setServicePath(String servicePath) 
    {
        this.servicePath = servicePath;
    }

    public String getServicePath() 
    {
        return servicePath;
    }
    public void setServicePort(String servicePort) 
    {
        this.servicePort = servicePort;
    }

    public String getServicePort() 
    {
        return servicePort;
    }
    public void setServiceWsId(String serviceWsId) 
    {
        this.serviceWsId = serviceWsId;
    }

    public String getServiceWsId() 
    {
        return serviceWsId;
    }
    public void setServiceTags(String serviceTags) 
    {
        this.serviceTags = serviceTags;
    }

    public String getServiceTags() 
    {
        return serviceTags;
    }
    public void setRouteId(String routeId) 
    {
        this.routeId = routeId;
    }

    public String getRouteId() 
    {
        return routeId;
    }
    public void setRouteName(String routeName) 
    {
        this.routeName = routeName;
    }

    public String getRouteName() 
    {
        return routeName;
    }
    public void setRouteHost(String routeHost) 
    {
        this.routeHost = routeHost;
    }

    public String getRouteHost() 
    {
        return routeHost;
    }
    public void setRouteServiceId(String routeServiceId) 
    {
        this.routeServiceId = routeServiceId;
    }

    public String getRouteServiceId() 
    {
        return routeServiceId;
    }
    public void setConsumerId(String consumerId) 
    {
        this.consumerId = consumerId;
    }

    public String getConsumerId() 
    {
        return consumerId;
    }
    public void setConsumerName(String consumerName) 
    {
        this.consumerName = consumerName;
    }

    public String getConsumerName() 
    {
        return consumerName;
    }
    public void setTriesIp(String triesIp) 
    {
        this.triesIp = triesIp;
    }

    public String getTriesIp() 
    {
        return triesIp;
    }
    public void setUpstreamUri(String upstreamUri) 
    {
        this.upstreamUri = upstreamUri;
    }

    public String getUpstreamUri() 
    {
        return upstreamUri;
    }
    public void setClientIp(String clientIp) 
    {
        this.clientIp = clientIp;
    }

    public String getClientIp() 
    {
        return clientIp;
    }
    public void setStartedAt(Date startedAt) 
    {
        this.startedAt = startedAt;
    }

    public Date getStartedAt() 
    {
        return startedAt;
    }
    public void setAuthenticatedEntity(String authenticatedEntity) 
    {
        this.authenticatedEntity = authenticatedEntity;
    }

    public String getAuthenticatedEntity() 
    {
        return authenticatedEntity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("requestQuerystring", getRequestQuerystring())
            .append("requestHost", getRequestHost())
            .append("requestUrl", getRequestUrl())
            .append("requestMethod", getRequestMethod())
            .append("requestSize", getRequestSize())
            .append("requestBody", getRequestBody())
            .append("requestUri", getRequestUri())
            .append("latenciesKong", getLatenciesKong())
            .append("latenciesRequest", getLatenciesRequest())
            .append("latenciesLatencies", getLatenciesLatencies())
            .append("responseStatus", getResponseStatus())
            .append("responseSize", getResponseSize())
            .append("responseBody", getResponseBody())
            .append("serviceId", getServiceId())
            .append("serviceName", getServiceName())
            .append("serviceHost", getServiceHost())
            .append("servicePath", getServicePath())
            .append("servicePort", getServicePort())
            .append("serviceWsId", getServiceWsId())
            .append("serviceTags", getServiceTags())
            .append("routeId", getRouteId())
            .append("routeName", getRouteName())
            .append("routeHost", getRouteHost())
            .append("routeServiceId", getRouteServiceId())
            .append("consumerId", getConsumerId())
            .append("consumerName", getConsumerName())
            .append("triesIp", getTriesIp())
            .append("upstreamUri", getUpstreamUri())
            .append("clientIp", getClientIp())
            .append("startedAt", getStartedAt())
            .append("authenticatedEntity", getAuthenticatedEntity())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
